# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=vkd3d
pkgver=1.1
pkgrel=0
pkgdesc="Direct3D 12 to Vulkan translation library"
url="https://www.winehq.org"
arch="all"
license="LGPL-2.1-or-later"
makedepends="vulkan-headers<1.2.140 vulkan-loader-dev spirv-headers spirv-tools-dev libxcb-dev
	xcb-util-keysyms-dev"
subpackages="$pkgname-static $pkgname-dev"
source="https://dl.winehq.org/vkd3d/source/vkd3d-${pkgver}.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-xcb \
		--with-spirv-tools
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e107612bdca95e998f9d819bdf74e4ffe1b4d400d250ab855c4ebf94b7d3f088b3221591fef03b1c6b8ecb030feb1673f74831bd8bd8edda2989d09a8846b0f7  vkd3d-1.1.tar.xz"
